;(function(window) {

  var svgSprite = '<svg>' +
    '' +
    '<symbol id="icon-bofang" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0zM512 960c-247.424 0-448-200.576-448-448s200.576-448 448-448 448 200.576 448 448S759.424 960 512 960z" fill="#ffffff" ></path>' +
    '' +
    '<path d="M384 256 768 512 384 768Z" fill="#ffffff" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-vip" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M512 33.984c-265.216 0-480 214.848-480 480 0 265.088 214.784 480 480 480 265.152 0 480-214.848 480-480C992 248.832 777.152 33.984 512 33.984zM723.904 839.808 512 692.352l-211.776 147.456 74.752-246.912L169.344 436.992l257.92-5.248L512 188.096l84.8 243.712 257.792 5.248-205.632 155.84L723.904 839.808z" fill="#FC7050" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-pulse" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M41.984 498.4l56.32 0q22.528 0 36.352-4.096t27.136-15.36l16.384-16.384q10.24-10.24 21.504-23.552t23.04-27.136 22.016-26.112q20.48-25.6 36.864-19.968t24.576 24.064l45.056 123.904q34.816-97.28 61.44-176.128 11.264-33.792 22.528-66.048t20.48-59.392 15.36-45.056 7.168-23.04q5.12-17.408 15.36-28.16t22.528-10.752q13.312 0 27.648 7.68t18.432 31.232q1.024 6.144 4.096 32.768t8.192 66.56 10.752 88.576 11.776 98.816q13.312 117.76 30.72 263.168 22.528-73.728 40.96-134.144 7.168-25.6 14.848-50.688t14.336-46.08 10.752-35.328 6.144-18.432q5.12-16.384 12.288-24.576t19.456-11.264q23.552-6.144 35.328 6.656t11.776 26.112q0 11.264-2.048 19.456-1.024 4.096-1.024 7.168l36.864 100.352q1.024-1.024 3.072-4.096 3.072-5.12 10.24-21.504 8.192-17.408 27.136-23.04t36.352-4.608q11.264 1.024 22.528 1.024l47.104 0 0 77.824q-6.144 1.024-12.288 1.024l-26.624 0q-14.336-1.024-26.624 7.68t-17.408 16.896q-4.096 8.192-14.336 31.744t-18.432 48.128q-4.096 12.288-13.312 16.384t-18.944 3.584-18.432-5.632-11.776-12.288-10.24-25.088-14.336-36.352q-9.216-21.504-18.432-46.08-26.624 84.992-48.128 156.672-9.216 30.72-18.432 60.416t-16.896 54.784-12.8 42.496-6.144 23.552q-5.12 24.576-19.456 38.912t-34.816 13.312q-21.504-2.048-30.72-18.432t-11.264-37.888q0-5.12-2.56-31.744t-6.656-67.584-8.704-91.136-9.728-102.4q-11.264-121.856-26.624-272.384-28.672 83.968-51.2 150.528-9.216 28.672-18.944 56.32t-17.408 50.176-12.8 37.888l-6.144 18.432q-5.12 13.312-13.824 24.576t-27.136 10.24q-18.432 0-27.648-12.8t-14.336-29.184q-3.072-8.192-11.264-31.744t-17.408-48.128q-11.264-28.672-23.552-63.488-7.168 9.216-15.36 18.432-7.168 8.192-15.36 17.92t-16.384 18.944q-16.384 19.456-30.72 26.624t-33.792 5.12q-10.24-1.024-27.136-0.512t-34.304 0.512q-19.456 1.024-43.008 1.024l0-79.872z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-mes" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M650.164953 887.389153C650.028538 962.862075 589.477069 1024 513.6306 1024c-75.322484 0-136.396664-60.884219-136.533078-136.610847L650.164953 887.389153 650.164953 887.389153 650.164953 887.389153zM604.652227 91.020352c0-50.164843-40.752242-91.020352-91.021627-91.020352-50.166118 0-91.021627 40.752242-91.021627 91.020352 0 5.122556 0.425817 10.146945 1.24048 15.040019-125.687487 43.808182-228.79901 178.344764-228.79901 337.515002l0 125.312666c0 0 0 180.47385-44.334717 182.045804C124.280633 750.932568 104.031365 771.309327 104.031365 796.446569c0 25.308079 20.371659 45.507626 45.502527 45.507626l364.096708 0 318.580158 0 45.517826 0c25.254533 0 45.502527-20.375484 45.502527-45.507626 0-25.311904-20.371659-45.512726-45.502527-45.512726-45.517826 0-45.517826-180.776002-45.517826-180.776002l0-126.568444c0-159.375497-96.410638-293.965625-228.773512-337.641217C604.237884 101.088253 604.652227 96.104661 604.652227 91.020352L604.652227 91.020352zM604.652227 91.020352"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-zanting" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M512 1.548626C229.658643 1.548626 0.775593 230.431676 0.775593 512.774313S229.658643 1024 512 1024s511.224407-228.883051 511.224407-511.225687S794.341357 1.548626 512 1.548626zM512 972.873592c-254.107733 0-460.101839-205.995386-460.101839-460.101839S257.892267 52.669915 512 52.669915s460.101839 205.995386 460.101839 460.101839S766.107733 972.873592 512 972.873592z" fill="#ffffff" ></path>' +
    '' +
    '<path d="M369.2423 360.096449l101.225092 0 0 305.354448-101.225092 0 0-305.354448Z" fill="#ffffff" ></path>' +
    '' +
    '<path d="M553.532608 360.096449l101.225092 0 0 305.354448-101.225092 0 0-305.354448Z" fill="#ffffff" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-icon-xia" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M52.335 261.072c-31.269 30.397-31.269 79.722 0 110.194l403.212 391.718c31.325 30.382 82.114 30.382 113.377 0l403.197-391.718c31.325-30.466 31.325-79.793 0-110.194-31.28-30.449-82.058-30.449-113.39 0l-346.497 336.64-346.457-336.64c-31.325-30.448-82.105-30.448-113.446 0l0 0z" fill="#ffffff" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-sangedian" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M183.452707 394.657478c-64.811098 0-117.338429 52.535517-117.338429 117.338429 0 64.804958 52.52733 117.346615 117.338429 117.346615s117.338429-52.541657 117.338429-117.346615C300.790112 447.192995 248.263805 394.657478 183.452707 394.657478zM512.001535 394.657478c-64.813145 0-117.340475 52.535517-117.340475 117.338429 0 64.804958 52.52733 117.346615 117.340475 117.346615 64.810075 0 117.336382-52.541657 117.336382-117.346615C629.337917 447.192995 576.81161 394.657478 512.001535 394.657478zM840.545246 394.657478c-64.810075 0-117.337405 52.535517-117.337405 117.338429 0 64.804958 52.52733 117.346615 117.337405 117.346615 64.811098 0 117.338429-52.541657 117.338429-117.346615C957.883675 447.192995 905.356344 394.657478 840.545246 394.657478z" fill="#ffffff" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-xunhuan" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M840.576397 261.653642l-114.607775-114.607775c-9.004897-9.004897-23.433197-9.004897-32.438093 0-9.004897 9.004897-9.004897 23.433197 0 32.438093l74.802039 74.802039L409.67163 254.286c-126.375537 0-229.010892 102.635355-229.010892 229.215549 0 12.688718 10.232837 22.921555 22.921555 22.921555 12.688718 0 22.921555-10.232837 22.921555-22.921555 0-101.202758 82.169681-183.270111 183.167783-183.270111l364.084341 0-85.955831 85.955831c-9.004897 8.902568-9.004897 23.433197 0 32.438093 8.902568 9.004897 23.433197 9.004897 32.438093 0l119.724193-119.724193c4.297792-4.297792 6.549016-9.925852 6.651344-15.553912C848.455681 275.774958 846.511442 267.588688 840.576397 261.653642z" fill="#ffffff" ></path>' +
    '' +
    '<path d="M249.527731 781.481763l86.058159 86.058159c9.004897 8.902568 9.004897 23.433197 0 32.438093-9.004897 9.004897-23.433197 9.004897-32.438093 0l-119.724193-119.724193c-6.753672-6.753672-8.390926-16.679524-5.01409-24.968122 0.818627-4.502448 2.865194-8.697911 6.344359-12.177076l114.607775-114.607775c9.004897-8.902568 23.433197-8.902568 32.438093 0 8.902568 9.004897 8.902568 23.433197 0 32.438093l-74.69971 74.69971 336.558009 0c101.10043 0 183.167783-82.169681 183.167783-183.270111 0-12.688718 10.232837-22.921555 22.921555-22.921555 12.688718 0 22.921555 10.232837 22.921555 22.921555 0 126.477865-102.635355 229.215549-229.010892 229.215549L249.527731 781.584091 249.527731 781.481763zM249.527731 781.481763" fill="#ffffff" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-love" viewBox="0 0 1038 1024">' +
    '' +
    '<path d="M511.197728 980.264916 109.597117 551.500643C32.910551 468.998627-3.837398 384.765177 0.316202 300.857139c5.368264-108.642372 78.735226-174.597527 81.864496-177.347151 57.958016-49.465598 120.016421-74.391291 184.821379-74.391291 111.456465 0 200.862727 73.560366 244.12709 117.523647 43.391253-44.096311 132.415822-117.523647 244.385986-117.523647 64.809051 0 126.799918 24.925692 184.378288 74.005504 3.647063 3.130294 76.882018 69.081355 82.250282 177.728844 4.217045 83.84357-32.589233 168.142511-109.212354 250.517637L511.197728 980.264916 511.197728 980.264916 511.197728 980.264916z" fill="#ffffff" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-shanmai" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M510.41792 509.89568m-489.37984 0a489.37984 489.37984 0 1 0 978.75968 0 489.37984 489.37984 0 1 0-978.75968 0Z" fill="#F2F2F2" ></path>' +
    '' +
    '<path d="M279.16288 387.29216a40.5504 40.5504 0 0 0-0.19456-3.32288 41.5744 41.5744 0 0 0-45.83936-36.81792 41.43104 41.43104 0 0 0-13.312 3.80416c-5.68832-16.18432-21.06368-27.80672-39.18848-27.80672a41.51808 41.51808 0 0 0-34.90816 19.04128c-0.24576-0.00512-0.48128-0.03584-0.72704-0.03584a41.5744 41.5744 0 0 0-41.5744 41.5744c0 1.2032 0.08192 2.38592 0.1792 3.56352h175.5648z" fill="#71B9CC" ></path>' +
    '' +
    '<path d="M833.13664 550.70208c-0.04096-1.792-0.09728-3.584-0.256-5.39648-3.27168-37.07392-30.21824-63.8464-60.1856-59.79648-6.2464 0.8448-12.10368 3.0208-17.47968 6.17984-7.46496-26.28608-27.65312-45.16864-51.456-45.16864-19.23072 0-36.10624 12.33408-45.82912 30.92992-0.32256-0.00512-0.63488-0.06144-0.95744-0.06144-30.14656 0-54.58432 30.2336-54.58432 67.52768 0 1.95584 0.1024 3.87584 0.23552 5.7856h230.51264zM738.688 232.20224a51.8144 51.8144 0 0 0-0.23552-4.06016c-3.04128-27.8784-28.11392-48.01536-55.99232-44.96896a50.63168 50.63168 0 0 0-16.26112 4.64896c-6.94784-19.76832-25.728-33.96608-47.872-33.96608-17.8944 0-33.59232 9.27744-42.63936 23.26016-0.29696-0.00512-0.5888-0.04608-0.89088-0.04608-28.04736 0-50.78016 22.73792-50.78016 50.78016 0 1.46944 0.09728 2.91328 0.22016 4.352h214.4512z" fill="#AFD8E2" ></path>' +
    '' +
    '<path d="M63.42144 705.60768c123.37152 252.91776 330.30144 293.67296 445.7216 293.67296 13.5936 0 320.26624-272.02048 333.58336-273.11104l-423.5776-400.2816-355.72736 379.71968z" fill="#EFE6DF" ></path>' +
    '' +
    '<path d="M949.6576 722.05312c-123.37152 230.2976-322.54976 277.2224-437.96992 277.2224-13.5936 0-161.0752-15.39584-213.16608-48.29696l396.16512-457.1648 254.97088 228.23936zM279.32672 474.28096L419.1488 325.888l148.04992 141.19424-99.72736-17.47456-44.20608 40.09472-59.63264-32.90112z" fill="#D1C6BF" ></path>' +
    '' +
    '<path d="M694.6816 493.81376l-126.45376 148.04992 86.35904-15.42144 41.12384 37.01248 63.744-48.32256 94.58688 21.59104z" fill="#9B928E" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-aixin" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M399.871 168.142s-112.663-52.882-213.829 6.898C93.938 229.464 52.686 365.876 103.27 455.546S441.258 828.023 498.738 837.22c57.481 9.197 74.742-22.552 108.064-45.985 33.322-23.433 365.579-344.886 335.689-450.651-29.89-105.765-139.453-214.479-252.916-181.64S507.935 264.71 507.935 264.71s-39.356-72.926-108.064-96.568z" fill="#FFFFFF" ></path>' +
    '' +
    '<path d="M837.474 545.95l4.977 1.134-4.977-1.134zM515.835 872.061c-16.193 0-31.949-5.503-48.739-13.736-34.144-16.733-299.754-246.851-374.838-398.383-32.482-65.544-35.028-136.836-7.18-200.738 25.728-59.007 73.806-102.699 131.91-119.88 122.002-36.11 216.988 26.864 220.972 29.562 9.972 6.751 12.592 20.337 5.838 30.33-6.754 9.961-20.252 12.595-30.245 5.876-1.204-0.789-82.713-53.877-184.207-23.878-45.032 13.32-84.012 49.003-104.264 95.469-22.617 51.861-20.391 110.058 6.275 163.849 69.758 140.803 323.66 363.233 354.938 378.568 23.789 11.656 33.931 12.147 49.4 2.421 36.189-22.715 276.934-219.55 363.503-394.053 29.275-59.017 19.794-132.602-24.141-187.45-46.108-57.567-118.785-80.826-194.36-62.163-61.662 15.218-160.589 114.985-213.728 168.584-8.523 8.553-22.319 8.585-30.863 0.117-8.555-8.5-8.597-22.331-0.117-30.895 77.748-78.405 166.384-163.476 234.267-180.219 92.642-22.843 181.832 6.068 238.848 77.254 54.524 68.071 65.966 159.999 29.169 234.203-96.115 193.774-354.629 396.09-379.409 411.639-15.266 9.567-29.307 13.523-43.029 13.523z" fill="" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-xiayishou" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M523.493 64.027c-253.853 0-459.466 205.606-459.466 459.466s205.606 459.466 459.466 459.466 459.466-205.606 459.466-459.466-205.606-459.466-459.466-459.466zM523.493 948.492c-234.329 0-424.993-190.679-424.993-424.993s190.679-424.993 424.993-424.993 424.993 190.679 424.993 424.993-190.679 424.993-424.993 424.993z" fill="#ffffff" ></path>' +
    '' +
    '<path d="M642.943 678.564h2.302c9.187 0 16.080-6.885 16.080-16.080v-276.829c0-9.187-6.885-16.080-16.080-16.080h-2.302c-9.187 0-16.080 6.885-16.080 16.080v276.829c-1.142 8.045 6.885 16.080 16.080 16.080z" fill="#ffffff" ></path>' +
    '' +
    '<path d="M630.323 509.698l-219.397-126.35c-10.338-5.749-24.113 1.142-24.113 13.77v252.692c0 12.637 13.77 20.667 24.113 13.77l219.397-126.35c10.338-5.749 10.338-21.828 0-27.573zM416.663 615.38v-183.771c0-4.587 4.587-6.885 8.045-4.587l159.67 91.902c3.443 2.302 3.443 6.885 0 9.187l-159.67 91.902c-3.443 2.302-8.045 0-8.045-4.587z" fill="#ffffff" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-shangyishou" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M512 64.027c-253.853 0-459.466 205.606-459.466 459.466s205.606 459.466 459.466 459.466 459.466-205.606 459.466-459.466-205.606-459.466-459.466-459.466zM512 948.492c-234.329 0-424.993-190.679-424.993-424.993s190.679-424.993 424.993-424.993 424.993 190.679 424.993 424.993-190.679 424.993-424.993 424.993z" fill="#ffffff" ></path>' +
    '' +
    '<path d="M392.548 678.564h-2.302c-9.187 0-16.080-6.885-16.080-16.080v-276.829c0-9.187 6.885-16.080 16.080-16.080h2.302c9.187 0 16.080 6.885 16.080 16.080v276.829c1.142 8.045-6.885 16.080-16.080 16.080z" fill="#ffffff" ></path>' +
    '' +
    '<path d="M405.168 537.281l219.397 126.35c10.338 5.749 24.113-1.142 24.113-13.77v-252.692c0-12.637-13.77-20.667-24.113-13.77l-219.397 126.35c-10.338 5.749-10.338 21.828 0 27.573zM610.783 619.977l-159.67-91.902c-3.443-2.302-3.443-6.885 0-9.187l159.67-91.902c3.443-2.302 8.045 0 8.045 4.587v183.771c0 4.587-4.587 6.885-8.045 4.587z" fill="#ffffff" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-wsmp-contacts" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M622.543 485.321c41.698-32.541 68.635-82.964 68.635-139.614 0-97.913-80.18-177.583-178.766-177.583-98.585 0-178.76 79.671-178.76 177.583 0 56.65 26.931 107.073 68.631 139.614-109.898 43.629-187.803 150.256-187.803 274.756v59.18c0 16.366 13.326 29.603 29.784 29.603h536.3c16.461 0 29.784-13.238 29.784-29.603v-59.18c0-124.551-77.912-231.127-187.806-274.756zM393.996 345.474c0-64.889 53.1-117.636 118.417-117.636 65.311 0 118.418 52.747 118.418 117.636 0 64.866-53.106 117.63-118.418 117.63-65.317 0-118.417-52.742-118.417-117.63zM744.702 788.653h-464.604v-28.847c0-127.25 104.213-230.784 232.339-230.784 128.076 0 232.266 103.535 232.266 230.784v28.847zM744.702 788.653z"  ></path>' +
    '' +
    '<path d="M298.704 508.010l6.381-1.388c13.712-4.148 23.476-15.047 23.476-27.843 0-12.353-9.127-22.921-22.075-27.375-34.997-14.396-57.577-45.992-57.577-80.808 0-39.452 37.613-72.69 76.982-84.211 6.891-19.264 17.319-37.091 30.595-52.852 15.381-22.817 34.606-41.783 56.931-56.412-52.278 46.073-54.792 45.471-57.513 45.471-90.111 0-163.453 66.385-163.453 148.003 0 37.465 15.764 72.58 42.518 99.288-85.099 39.915-140.592 119.746-140.592 210.058v45.783c0 16.368 14.625 29.6 32.677 29.6h58.57c0-20.283 2.293-33.283 6.593-52.412h-41.383v-22.97c0.001-81.807 60.739-152.017 147.87-171.933zM787.724 469.884c26.755-26.708 42.52-61.828 42.52-99.287 0-81.619-73.322-148.026-163.455-148.026-2.722 0-5.241 0.604-7.883 0.719 15.877 20.635 27.99 45.068 34.792 71.629-14.215-45.648-3.794-27.82 3.081-8.557 39.368 11.518 82.423 44.76 82.423 84.211 0 34.822-22.613 66.435-57.578 80.809-12.947 4.448-22.075 15.020-22.075 27.381 0 12.794 9.793 23.689 23.471 27.832l6.382 1.393c87.163 19.939 147.866 90.125 147.866 171.954v22.97h-46.847c4.327 19.124 6.592 32.128 6.592 52.412h58.569c18.087 0 32.678-13.232 32.678-29.6v-45.783c0.060-90.312-55.434-170.143-140.536-210.058zM787.724 469.884z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-youxiang" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M786.141732 201.574803H233.826772c-36.283465 0-68.535433 32.251969-68.535433 68.535433V685.354331c0 36.283465 32.251969 68.535433 68.535433 68.535433h552.31496c36.283465 0 68.535433-32.251969 68.535433-68.535433V270.110236c0-36.283465-28.220472-68.535433-68.535433-68.535433z m0 133.03937c0 4.031496 0 4.031496-4.031496 8.062992l-270.110236 169.322835h-8.062992L237.858268 342.677165c-4.031496 0-4.031496-4.031496-4.031496-8.062992V286.23622c0-8.062992 8.062992-8.062992 12.094488-8.062992l258.015748 161.259843h8.062992l258.015748-161.259843c4.031496-4.031496 12.094488 0 12.094488 8.062992v48.377953z" fill="#ffffff" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-dang" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M650.164953 887.389153C650.028538 962.862075 589.477069 1024 513.6306 1024c-75.322484 0-136.396664-60.884219-136.533078-136.610847L650.164953 887.389153 650.164953 887.389153 650.164953 887.389153zM604.652227 91.020352c0-50.164843-40.752242-91.020352-91.021627-91.020352-50.166118 0-91.021627 40.752242-91.021627 91.020352 0 5.122556 0.425817 10.146945 1.24048 15.040019-125.687487 43.808182-228.79901 178.344764-228.79901 337.515002l0 125.312666c0 0 0 180.47385-44.334717 182.045804C124.280633 750.932568 104.031365 771.309327 104.031365 796.446569c0 25.308079 20.371659 45.507626 45.502527 45.507626l364.096708 0 318.580158 0 45.517826 0c25.254533 0 45.502527-20.375484 45.502527-45.507626 0-25.311904-20.371659-45.512726-45.502527-45.512726-45.517826 0-45.517826-180.776002-45.517826-180.776002l0-126.568444c0-159.375497-96.410638-293.965625-228.773512-337.641217C604.237884 101.088253 604.652227 96.104661 604.652227 91.020352L604.652227 91.020352zM604.652227 91.020352" fill="#ffffff" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '</svg>'
  var script = function() {
    var scripts = document.getElementsByTagName('script')
    return scripts[scripts.length - 1]
  }()
  var shouldInjectCss = script.getAttribute("data-injectcss")

  /**
   * document ready
   */
  var ready = function(fn) {
    if (document.addEventListener) {
      if (~["complete", "loaded", "interactive"].indexOf(document.readyState)) {
        setTimeout(fn, 0)
      } else {
        var loadFn = function() {
          document.removeEventListener("DOMContentLoaded", loadFn, false)
          fn()
        }
        document.addEventListener("DOMContentLoaded", loadFn, false)
      }
    } else if (document.attachEvent) {
      IEContentLoaded(window, fn)
    }

    function IEContentLoaded(w, fn) {
      var d = w.document,
        done = false,
        // only fire once
        init = function() {
          if (!done) {
            done = true
            fn()
          }
        }
        // polling for no errors
      var polling = function() {
        try {
          // throws errors until after ondocumentready
          d.documentElement.doScroll('left')
        } catch (e) {
          setTimeout(polling, 50)
          return
        }
        // no errors, fire

        init()
      };

      polling()
        // trying to always fire before onload
      d.onreadystatechange = function() {
        if (d.readyState == 'complete') {
          d.onreadystatechange = null
          init()
        }
      }
    }
  }

  /**
   * Insert el before target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var before = function(el, target) {
    target.parentNode.insertBefore(el, target)
  }

  /**
   * Prepend el to target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var prepend = function(el, target) {
    if (target.firstChild) {
      before(el, target.firstChild)
    } else {
      target.appendChild(el)
    }
  }

  function appendSvg() {
    var div, svg

    div = document.createElement('div')
    div.innerHTML = svgSprite
    svgSprite = null
    svg = div.getElementsByTagName('svg')[0]
    if (svg) {
      svg.setAttribute('aria-hidden', 'true')
      svg.style.position = 'absolute'
      svg.style.width = 0
      svg.style.height = 0
      svg.style.overflow = 'hidden'
      prepend(svg, document.body)
    }
  }

  if (shouldInjectCss && !window.__iconfont__svg__cssinject__) {
    window.__iconfont__svg__cssinject__ = true
    try {
      document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
    } catch (e) {
      console && console.log(e)
    }
  }

  ready(appendSvg)


})(window)